using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.Shared;

namespace Colorprj
{
    public partial class frmRptOutstandingBills : Form
    {
        public frmRptOutstandingBills()
        {
            InitializeComponent();
        }


        private void showReport()
        {

            ReportDocument cryRpt = new Report.OutStandingBills();

            ParameterField paramField = new ParameterField();
            ParameterFields paramFields = new ParameterFields();
            ParameterDiscreteValue paramDiscreteValue = new ParameterDiscreteValue();

            cryRpt.DataSourceConnections[0].SetConnection(Globalclass.DsnName, Globalclass.DbName, "atul", "vikas");

            cryRpt.SetDatabaseLogon("atul", "vikas", Globalclass.DsnName, Globalclass.DbName, false);
            crystalReportViewer1.ReportSource = cryRpt;

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            showReport(); 
        }

    }
}